package me.landery.modules.sinco.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.landery.base.BaseDTO;
import me.landery.base.BaseEntity;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author cc.w
 * @Date 2022/6/7 21:38
 * @Version 1.0
 */
@Getter
@Setter
public class CallDto extends BaseDTO implements Serializable {
    @NotNull(groups = BaseEntity.Update.class)
    private Long id;
    private UserSmallDto user;

    private ApplicationDto application;

    @NotBlank
    private String type;
    @NotBlank
    private String content;
    @NotBlank
    private String result;
    private Date time;
    @NotNull
    private Boolean success;
    private Double cost;

    private Long quota;

    private String ipaddr;
    private String addr;

    private Integer language;

    private Integer length;

    private Integer contentType;


    private String title;

    private String generateType;
}
